package com.slj.cloudaibaba.handler;

import com.slj.cloudaibaba.client.PayClient;
import com.slj.cloudaibaba.model.response.PayDTO;
import com.slj.cloudaibaba.model.response.Result;
import com.slj.cloudaibaba.model.response.ResultCode;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
@Slf4j
public class PayFeignSentinelApiFallBack implements PayClient {

    @Override
    public Result<String> getPort(Integer id) {
        log.error("$$$$$$$$$$$$$$$$");
        return Result.error(ResultCode.INTERNAL_SERVER_ERROR);
    }

    @Override
    public Result<List<PayDTO>> findAll() {
        log.error("$$$$$$$$$$$$$$$$");
        return Result.error(ResultCode.INTERNAL_SERVER_ERROR);
    }

    @Override
    public Result<Void> save(PayDTO payDTO) {
        log.error("$$$$$$$$$$$$$$$$");
        return Result.error(ResultCode.INTERNAL_SERVER_ERROR);
    }
}
